home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / examples / exam11 / main.c < prev    next >
C/C++ Source or Header  |  1995-09-27  |  1KB  |  76 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6. /*
  7.  *
  8.  *    This source code is CONFIDENTIAL and
  9.  *    PROPRIETARY to Algorithms Corporation. Unauthorized
  10.  *    distribution, adaptation or use    may
  11.  *    be subject to civil and    criminal penalties.
  12.  *
  13.  *    Copyright (c) 1993 Algorithms Corporation
  14.  *    3020 Liberty Hills Drive
  15.  *    Franklin, TN  37064
  16.  *
  17.  *    ALL RIGHTS RESERVED.
  18.  *
  19.  *
  20.  *
  21.  */
  22.  
  23.  
  24.  
  25. #include "generics.h"
  26.  
  27.  
  28. main(int argc, char *argv[])
  29. {
  30.     /*  declare a variable to hold the object  */
  31.     object    myObj;
  32.  
  33.     InitDynace(&argc);
  34.  
  35.     /*  Create an instance of the new class.  Note that the gNew generic
  36.         is actually running the New method associated with the Object
  37.         class since Class1 doesn't explicitly define this method.  */
  38.         
  39.     myObj = gNew(Class1);
  40.  
  41.     /*  If the garbage collector is not being used you must dispose of
  42.         an object which is no longer needed (unless of course you program
  43.         is terminating, in which case all the objects will be freed
  44.         anyway.)  This method is also being inherited from the Object
  45.         class.  */
  46.  
  47.     gDispose(myObj);
  48.  
  49.     return 0;
  50. }
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. /*
  59.  *
  60.  *    This source code is CONFIDENTIAL and
  61.  *    PROPRIETARY to Algorithms Corporation. Unauthorized
  62.  *    distribution, adaptation or use    may
  63.  *    be subject to civil and    criminal penalties.
  64.  *
  65.  *    Copyright (c) 1993 Algorithms Corporation
  66.  *    3020 Liberty Hills Drive
  67.  *    Franklin, TN  37064
  68.  *
  69.  *    ALL RIGHTS RESERVED.
  70.  *
  71.  *
  72.  *
  73.  */
  74.  
  75.  
  76.